package org.onvivals.module.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统日志
 */
@Schema(description="系统日志")
@Data
@TableName(value = "sys_log")
public class SysLog implements Serializable {
    /**
     * ID
     */
    @TableId(value = "log_id", type = IdType.ASSIGN_ID)
    @Schema(description="ID")
    private Long logId;

    @TableField(value = "description")
    @Schema(description="")
    private String description;

    @TableField(value = "log_type")
    @Schema(description="")
    private String logType;

    @TableField(value = "`method`")
    @Schema(description="")
    private String method;

    @TableField(value = "params")
    @Schema(description="")
    private String params;

    @TableField(value = "request_ip")
    @Schema(description="")
    private String requestIp;

    @TableField(value = "`time`")
    @Schema(description="")
    private Long time;

    @TableField(value = "username")
    @Schema(description="")
    private String username;

    @TableField(value = "address")
    @Schema(description="")
    private String address;

    @TableField(value = "browser")
    @Schema(description="")
    private String browser;

    @TableField(value = "exception_detail")
    @Schema(description="")
    private String exceptionDetail;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @Schema(description="")
    private Date createTime;

    private static final long serialVersionUID = 1L;
}
